#include <bits/stdc++.h>
using namespace std;
int n,t[100010],tmp,ans;
int main()
{
    freopen("r","duel.in",stdin);
    freopen("w","duel.out",stdout);
    cin>>n;
    ans=n;
    for(int i=1;i<=n;i++)
    {
        int x;
        cin>>x;
        t[x]++;
    }
    for(int i=1;i<=100000;i++)
    {
        if(t[i])
        {
            ans-=min(t[i],tmp);
            tmp=t[i]+tmp-min(t[i],tmp);
        }
    }
    cout<<ans;
    return 0;
}
